package com.piece.core.pay.dto;

import lombok.Builder;
import lombok.Data;
import lombok.ToString;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Map;

/**
 * 支付订单，退款订单回调，渠道的统一通知请求数据
 */
@Data
@Builder
@ToString
public class PayNotifyDataDTO {

    private HttpServletRequest request;

    private HttpServletResponse response;

    /**
     *  HTTP 回调接口的 request body
     */
    private String body;


    /**
     * HTTP 回调接口 content type 为 application/x-www-form-urlencoded 的所有参数
     */
    private Map<String,String> params;
}
